package com.vcc.msc.sbs.proxy;

import java.util.ArrayList;
import java.util.List;

import com.vcc.msc.sbs.entity.SessionAttributesEntity;

public class SessionAttributesProxyServiceMock implements
		SessionAttributesProxy {
	private static SessionAttributesEntity sessionAttributes;

	@Override
	public SessionAttributesEntity getSessionAttributes(boolean eagerFetch) {
		if (eagerFetch || sessionAttributes == null) {
			sessionAttributes = new SessionAttributesEntity();
			List<String> versionList = new ArrayList<String>();
			List<String> typeCodeList = new ArrayList<String>();

			versionList.add("PROD");
			versionList.add("1102");
			versionList.add("1103");
			versionList.add("1104");
			versionList.add("1234");
			versionList.add("1235");
			versionList.add("1245");

			typeCodeList.add("2901");
			typeCodeList.add("2922");
			typeCodeList.add("2111");
			typeCodeList.add("2122");
			typeCodeList.add("2345");

			sessionAttributes.setVersionList(versionList);
			sessionAttributes.setTypeCodeList(typeCodeList);

		}
		return sessionAttributes;
	}

}
